import request from '@/utils/request'

export function listPoster(query) {
  return request({
    url: '/poster/list',
    method: 'get',
    params: query
  })
}

export function createPoster(data) {
  return request({
    url: '/poster/create',
    method: 'post',
    data
  })
}

export function reposterPoster(data) {
  return request({
    url: '/poster/reposter',
    method: 'get',
    data
  })
}

export function updatePoster(data) {
  return request({
    url: '/poster/update',
    method: 'post',
    data
  })
}

export function deletePoster(data) {
  return request({
    url: '/poster/delete',
    method: 'post',
    data
  })
}
